package com.qf06;

public class TestBankCard {
    public static void main(String[] args) {
        BankCard card=new BankCard();
        AddMoney add = new AddMoney(card);
        SubMoney sub=new SubMoney(card);

        Thread chenchen=new Thread(add,"晨晨");
        Thread bingbing=new Thread(sub,"冰冰");

        Thread mingming=new Thread(add,"明明");
        Thread lili=new Thread(sub,"莉莉");
        chenchen.start();
        mingming.start();
        bingbing.start();
        lili.start();
    }
}
